package com.eppear.jpfm.framework.model;

/**
 * @ClassName WsMessage
 * @Description
 *         websocket通讯类
 * @author JianFeng Zhang(张建锋)
 * @date   2017-10-02 下午9:19:37
 *
 */
public class WsMessage<T> {

	/** 
	 * 异步标识码
	 */
	private String accStr;
	/** 
	 * 请求类型标识
	 */
	private String requestType;
	/** 
	 * 附加信息
	 */
	private String addInfo;
	private T data;	
	/** 
	 * 返回的消息标识码,0为成功,其它为失败
	 */
	private Integer resCode;
	/** 
	 * 错误消息
	 */
	private String erroMsg; 
	
	/**
	 *  获取异步标识码
	 * @return
	 */
	public String getAccStr() {
		return accStr;
	}
	/**
	 *  设置异步标识码
	 * @param accStr
	 */
	public void setAccStr(String accStr) {
		this.accStr = accStr;
	}
	/**
	 *  设置请求消息类型
	 * @return
	 */
	public String getRequestType() {
		return requestType;
	}
	/**
	 *  设置请求类型
	 * @param requestType
	 */
	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}
	public String getAddInfo() {
		return addInfo;
	}
	public void setAddInfo(String addInfo) {
		this.addInfo = addInfo;
	}
	/**
	 *  获取信息体
	 * @return
	 */
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	/**
	 *  获取返回消息的标识码
	 * @return
	 */
	public Integer getResCode() {
		return resCode;
	}
	public void setResCode(Integer resCode) {
		this.resCode = resCode;
	}
	/**
	 *  获取错误消息
	 * @return
	 */
	public String getErroMsg() {
		return erroMsg;
	}
	public void setErroMsg(String erroMsg) {
		this.erroMsg = erroMsg;
	}
	
	
}
